package cn.hongxin.sap.conn.param;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author hengji.li@getech.cn
 * @date 2020/3/2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "DemoUserUpdateParam", description = "分页查询参数")
@Validated
public class DemoUserAddParam {

    @Range(min = 1,max = 100)
    @NotNull
    private Integer age;

    @NotEmpty
    private String name;
}
